<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
    String queryString = request.getQueryString() == null ? "" : request.getQueryString().replaceAll("(\\&?lang\\=[a-zA-Z]{2}\\_[a-zA-Z]{2})|(lang\\=[a-zA-Z]{2}\\_[a-zA-Z]{2}\\&?)", "");
    String lang = request.getParameter("lang");
    String hspId = request.getParameter("hospitalId");
    if (lang != null) {
        session.setAttribute("locale", lang);
    } else if (session.getAttribute("locale") == null) {
        session.setAttribute("locale", request.getLocale().toString());
    }
%>
<!DOCTYPE html>
<html lang="zh">
<c:if test="${'zh_CN'.equals(sessionScope.locale)}">
    <fmt:setLocale value="zh_CN"/>
</c:if>
<c:if test="${sessionScope.locale.indexOf('en') != -1}">
    <fmt:setLocale value="en_US"/>
</c:if>
<fmt:setBundle basename="charts" var="charts"/>
<fmt:bundle basename="charts">
    <head>
        <meta charset="utf-8"/>
        <%-- rem.js --%>
        <script src="<%=basePath%>/js/rem.js"></script>
        <title>医疗设备系统</title>
        <link rel="shortcut icon" href="<%=basePath%>/images/favicon.ico">
        <link href="<%=basePath%>/plugins/charts/css/global.css" rel="stylesheet"/>
        <link rel="stylesheet" href="<%=basePath%>/css/font-awesome.min.css">
        <link rel="stylesheet" href="<%=basePath%>/plugins/iziModal/css/iziModal.min.css">
        <link rel="stylesheet" href="<%=basePath%>/plugins/select2/select2.min.css">
        <link rel="stylesheet" href="<%=basePath%>/plugins/iCheck/all.css">
        <link href="<%=basePath%>/plugins/charts/css/select2-my.css" rel="stylesheet"/>
        <link href="<%=basePath%>/plugins/charts/css/style.css" rel="stylesheet"/>
        <link rel="stylesheet" href="<%=basePath%>/plugins/flavr/flavr.css">
    </head>
    <body>
    <div id="container">
        <%--顶部选项--%>
        <div class="head-container">
            <div class="head">
                <div class="fl global_area">
                    <i class="fa fa-arrow-left fl" onclick="javascript:history.go(-1);"></i>
                    <div class="fl" id="language">
                        <div class="language">
                            <c:choose>
                                <c:when test="${'zh_CN'.equals(sessionScope.locale)}">简体中文</c:when>
                                <c:when test="${sessionScope.locale.indexOf('en') != -1}">English</c:when>
                                <c:otherwise>简体中文</c:otherwise>
                            </c:choose>
                        </div>
                        <ul class="hide">
                            <li><a href="?<%=queryString%>&lang=zh_CN">简体中文</a></li>
                            <li><a href="?<%=queryString%>&lang=en_US">English</a></li>
                        </ul>
                    </div>
                    <ul class="global">
                        <li><a id="btn1"><fmt:message key="share.title.zl"/></a></li>
                        <li><a id="btn2" class="on"><span class="page" page-hospital="department-index"><fmt:message
                                key="share.title.fx"/>-<fmt:message key="share.title.yyks"/></span>-<fmt:message
                                key="share.table.head.wxs"/></a>
                        </li>
                        <li><a id="btn5"><img src="<%=basePath%>/plugins/charts/images/search.png"></a></li>
                        <li><a id="btn6" onclick="reset()"><img
                                src="<%=basePath%>/plugins/charts/images/reset.png"></a></li>
                        <li><a id="btn7" onclick="logout()" title="<fmt:message key="share.title.tcdl"/>"><img src="<%=basePath%>/plugins/charts/images/logout.png"></a></li>
                    </ul>
                </div>
                <div class="clear"></div>
            </div>
        </div>
            <%--筛选条件--%>
        <jsp:include page="choose.jsp"></jsp:include>

        <div class="content" style="display:flex;flex-direction:column;justify-content:flex-start;">
                <%-- 总量统计 --%>
            <div class="totle">
                    <%-- 设备类型 --%>
                <div class="frame frame1" style="width:24%;">
                    <div class="border">
                        <div class="detail fl">
                            <p class="title"><img src="<%=basePath%>/plugins/charts/images/totle.png"
                                                  width="15"/><em id="title1"><fmt:message
                                    key="maintainer.overview.wxs"/></em><span
                                    id="yoy0" style="font-size:12px;color:#e68b36;text-decoration:none;"></span></p>
                            <p class="sum"><fmt:message key="maintainer.overview.sbsl"/>：<em id="count1-1"></em>
                                <fmt:message key="share.unit.tai"/></p>
                            <p class="sum"><fmt:message key="maintainer.overview.wxsl"/>：<em id="yoy1-1"></em>
                                <fmt:message key="share.unit.ci"/></p>
                        </div>
                        <div class="chart fr chart-text">
                            <p class="sum"><fmt:message key="maintainer.overview.ycxfl"/>: <em id="count1-2"></em></p>
                            <p class="sum"><fmt:message key="maintainer.overview.ztpjpf"/>：<em id="yoy1-2"> </em>
                                <fmt:message key="share.unit.fen"/></p>
                            <p class="line"></p>
                            <p class="sum"><fmt:message key="maintainer.overview.pjxysj"/>:<em id="count1-3"></em>
                                <fmt:message key="share.unit.fenzhong"/></p>
                            <p class="sum"><fmt:message key="maintainer.overview.pjwxsj"/>:<em id="count1-4"></em>
                                <fmt:message key="share.unit.fenzhong"/></p>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                    <%-- 大维修 --%>
                <div class="frame" style="width:23%;">
                    <div class="border">
                        <div class="detail fl">
                            <p class="title">
                                <em id="title2"><fmt:message key="maintainer.overview.dwx"/></em>
                            </p>
                            <p class="sum"><fmt:message key="maintainer.overview.sbsl"/>：<em id="count2-1"></em>
                                <fmt:message key="share.unit.tai"/></p>
                            <p class="sum"><fmt:message key="maintainer.overview.wxsl"/>：<em id="yoy2-1"></em>
                                <fmt:message key="share.unit.ci"/></p>
                        </div>
                        <div class="chart fr chart-text">
                            <p class="sum"><fmt:message key="maintainer.overview.ycxfl"/>: <em id="count2-2"></em></p>
                            <p class="sum"><fmt:message key="maintainer.overview.ztpjpf"/>：<em id="yoy2-2"></em>
                                <fmt:message key="share.unit.fen"/></p>
                            <p class="line"></p>
                            <p class="sum"><fmt:message key="maintainer.overview.pjxysj"/>:<em id="count2-3"></em>
                                <fmt:message key="share.unit.fenzhong"/></p>
                            <p class="sum"><fmt:message key="maintainer.overview.pjwxsj"/>:<em id="count2-4"></em>
                                <fmt:message key="share.unit.fenzhong"/></p>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
                    <%-- 中维修 --%>
                <div class="frame" style="width:23%;">
                    <div class="border">
                        <div class="detail fl">
                            <p class="title"><em id="title3"><fmt:message key="maintainer.overview.zwx"/></em></p>
                            <p class="sum"><fmt:message key="maintainer.overview.sbsl"/>：<em id="count3-1"></em>
                                <fmt:message key="share.unit.tai"/></p>
                            <p class="sum"><fmt:message key="maintainer.overview.wxsl"/>：<em id="yoy3-1"></em>
                                <fmt:message key="share.unit.ci"/></p>
                        </div>
                        <div class="chart fr chart-text">
                            <p class="sum"><fmt:message key="maintainer.overview.ycxfl"/>: <em id="count3-2"></em></p>
                            <p class="sum"><fmt:message key="maintainer.overview.ztpjpf"/>：<em id="yoy3-2"></em>
                                <fmt:message key="share.unit.fen"/></p>
                            <p class="line"></p>
                            <p class="sum"><fmt:message key="maintainer.overview.pjxysj"/>:<em id="count3-3"></em>
                                <fmt:message key="share.unit.fenzhong"/></p>
                            <p class="sum"><fmt:message key="maintainer.overview.pjwxsj"/>:<em id="count3-4"></em>
                                <fmt:message key="share.unit.fenzhong"/></p>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>

                    <%-- 小维修 --%>
                <div class="frame" style="width:24%;">
                    <div class="border">
                        <div class="detail fl">
                            <p class="title"><em id="title4"><fmt:message key="maintainer.overview.xwx"/></em></p>
                            <p class="sum"><fmt:message key="maintainer.overview.sbsl"/>：<em id="count4-1"></em>
                                <fmt:message key="share.unit.tai"/></p>
                            <p class="sum"><fmt:message key="maintainer.overview.wxsl"/>：<em id="yoy4-1"></em>
                                <fmt:message key="share.unit.ci"/></p>
                        </div>
                        <div class="chart fr chart-text">
                            <p class="sum"><fmt:message key="maintainer.overview.ycxfl"/>: <em id="count4-2"></em></p>
                            <p class="sum"><fmt:message key="maintainer.overview.ztpjpf"/>：<em id="yoy4-2">&nbsp;</em>
                                <fmt:message key="share.unit.fen"/></p>
                            <p class="line"></p>
                            <p class="sum"><fmt:message key="maintainer.overview.pjxysj"/>:<em id="count4-3"></em>
                                <fmt:message key="share.unit.fenzhong"/></p>
                            <p class="sum"><fmt:message key="maintainer.overview.pjwxsj"/>:<em id="count4-4"></em>
                                <fmt:message key="share.unit.fenzhong"/></p>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>

                <%--图表和排名--%>
            <div class="bottom_bar" style="flex:1;">
                    <%--左边部分--%>
                <div class="list_area fl">
                        <%--图表--%>
                    <div class="border chart-border">
                        <div class="area" style="position:relative;">
                            <p class="title">
                                <span class="fl"><span class="fb spanTitle" id="moredetail"><fmt:message
                                        key="charts.title.yyksfb"/></span></span>
                                <span id="overyear" class="option_overyear"><fmt:message
                                        key="charts.button.yfxs"/></span>
                            </p>
                            <p class="fr title quadrantContainner">
                                <span class="quadrantName"><fmt:message key="charts.button.xx"/>：</span>
                                <span class="quadrant quadrant1">1</span>
                                <span class="quadrant quadrant2">2</span>
                                <span class="quadrant quadrant3">3</span>
                                <span class="quadrant quadrant4">4</span>
                            </p>
                            <div id="swiper">
                                <div class="swiper-container">
                                    <div class="slide home-device">
                                        <div class="chartArea" id="chart" style="height:100%;"></div>

                                        <input id="currentTag" style="display:none;" value="tendency"/>
                                        <div class="pagination pagination1"></div>
                                    </div>
                                </div>
                                    <%--<span class="btn btn-left">&lt;</span>
                                    <span class="btn btn-right">&gt;</span>--%>
                            </div>
                            <select id="tag">
                                <option value="0" selected="selected"><fmt:message
                                        key="charts.select.wxcs-ycxfl"/></option>
                                <option value="1"><fmt:message key="charts.select.pjxysj-pjwxsj"/></option>
                            </select>
                        </div>
                    </div>
                </div>
                    <%--左边结束--%>

                    <%--右侧排名--%>
                <div class="list_data fr">
                    <div class="border">
                        <div class="area">
                            <div class="data_detail">
                                <div id="top5_hospital" class="top5">
                                    <p class="title">
                                        <img src="<%=basePath%>/plugins/charts/images/yljg.png">
                                        <em id="morehospitals" class="spanTitle"><fmt:message
                                                key="share.table.head.yyks"/></em>
                                        <span>TOP5</span>
                                    </p>
                                    <p class="name"><span class="fl data_span_f"><fmt:message
                                            key="share.table.head.yyks"/></span><span
                                            class="fl listpercent data_span_s"><fmt:message
                                            key="maintain.overview.wsx"/></span><span
                                            class="fr listcontent"><fmt:message
                                            key="maintainer.assets.ycxfl(%)"/></span></p>
                                    <ul class="hospital" id="ul_hospital"></ul>
                                </div>
                                <div id="top5_type" class="top5">
                                    <p class="title">
                                        <img src="<%=basePath%>/plugins/charts/images/sblx.png">
                                        <em id="moretypes" class="spanTitle"><fmt:message
                                                key="share.table.head.sblx"/></em>
                                        <span>TOP5</span></p>
                                    <p class="name">
                                        <span class="fl data_span_f"><fmt:message key="share.table.head.sblx"/></span>
                                        <span class="fl listpercent data_span_s"><fmt:message
                                                key="maintain.overview.wsx"/></span>
                                        <span class="fr listcontent"><fmt:message
                                                key="maintainer.assets.ycxfl(%)"/></span>
                                    </p>
                                    <ul class="hospital" id="ul_type"></ul>
                                </div>

                                <div id="top5_year" class="top5" style="display:none;">
                                    <p class="title">
                                        <em id="moreyears" class="spanTitle" onclick="moreyear()"><fmt:message
                                                key="charts.button.yfxs"/></em>
                                    </p>
                                    <p class="name">
                                        <span class="fl data_span_f"><fmt:message key="share.table.head.yf"/></span>
                                        <span class="fl listpercent data_span_s"><fmt:message
                                                key="maintain.overview.wsx"/></span>
                                        <span class="fr listcontent"><fmt:message
                                                key="maintainer.assets.ycxfl(%)"/></span>
                                    </p>
                                    <ul class="hospital" id="ul_year"></ul>
                                </div>
                                <div id="top5_model" class="top5">
                                    <p class="title">
                                        <img src="<%=basePath%>/plugins/charts/images/sblx.png">
                                        <em id="moremodel" class="spanTitle"><fmt:message
                                                key="share.table.head.sbxh"/></em>
                                        <span>TOP5</span></p>
                                    <p class="name">
                                        <span class="fl data_span_f"><fmt:message key="share.table.head.sbxh"/></span>
                                        <span class="fl listpercent data_span_s"><fmt:message
                                                key="maintain.overview.wsx"/></span>
                                        <span class="fr listcontent"><fmt:message
                                                key="maintainer.assets.ycxfl(%)"/></span>
                                    </p>
                                    <ul class="hospital" id="ul_model"></ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                    <%--右侧结束--%>
            </div>
        </div>
        <div class="baseline"></div>
            <%--详情图表模态框--%>
        <div id="modal" style="display:none">
            <div class="row">
                <div class="col-md-12">
                    <div class="box-body no-padding">
                        <table id="tblSort" class="table table-bordered table-striped table-hover table-responsive">
                            <tbody id="table_data">
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>

        <%-- JS部分 --%>
    <script src="<%=basePath%>/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="<%=basePath%>/plugins/jQuery/jquery.cookie.js"></script>
    <script src="<%=basePath%>/plugins/fastclick/fastclick_1.0.6.min.js"></script>
    <script src="<%=basePath%>/plugins/flavr/flavr.min.js"></script>
    <script src="<%=basePath%>/plugins/charts/js/echarts.min.js"></script>
    <!-- 引入 macarons 主题 -->
    <script src="<%=basePath%>/echarts/customed.js"></script>
    <script src="<%=basePath%>/plugins/select2/select2.full.min.js"></script>
    <script src="<%=basePath%>/plugins/select2/i18n/zh-CN.js"></script>
    <script src="<%=basePath%>/plugins/iziModal/js/iziModal.min.js"></script>
    <script src="<%=basePath%>/plugins/iCheck/icheck.min.js"></script>
    <script src="<%=basePath%>/plugins/jQuery/JQMeter.min.js"></script>
    <script src="<%=basePath%>/plugins/charts/js/plugins.js"></script>
    <script src="<%=basePath%>/plugins/charts/js/tableHeadFixer.js"></script>
    <script>
        /*--------- 全局变量 ---------*/
        var CONST = 1000000;
        var basePath = '<%=basePath%>';
        var title = 0;
        var maintainerId = GetQueryString('maintainerId') || '';
        var listcontentWidth = $('.listcontent').eq(0).width();
        /*--------- 全局变量 ---------*/

        /* 页面初始化 */
        $(function () {
            loading(function () {
                addChooseRadioEvent('hospital');
                resizeWindow();
                initChart();  // 初始化图表
                ChooseBox.siblingsClick();
                querySearch("hospital", '');
                querySearch("risk", '');
                querySearch("type", '');
                querySearch("brand", '');
                querySearch("year", '');
                getParams();
                appendTime();
                clickToggle($('.quadrant'));
                $("#btn5").click(function () {
                    ChooseBox.toggle();
                });

                $('#tag').select2();
                $('#tag').on('change', function (e) {
                    setChatsData($(this).val());
                    setUlHospital('desc', 0);
                    setUlType('desc', 0);
                    setUlModel('desc', 0);
                });
            });
        });

        // 初始化图表并添加图表点击事件
        function initChart() {
            chart = echarts.init(document.getElementById('chart'), 'customed');  // 初始化echarts实例
            chart.on("click", click);
        }

        var queryStatus = {
            arr: ['hospital', 'type', 'model'],
            getStatus: function () {
                for (var i = 0; i < this.arr.length; i++) {
                    if (!this[this.arr[i]]) return false;
                }
                return true;
            },
            resetStatus: function () {
                for (var i = 0; i < this.arr.length; i++) {
                    this[this.arr[i]] = false;
                }
            }
        };
        function click(param) {
            if (typeof param.seriesIndex === 'undefined') {
                return;
            }
            if (param.componentType === 'markLine') {
                return;
            }
            loading();
            if (param.type === 'click') {
                var index = param.dataIndex;
                if ($('#overyear').hasClass('active')) {
                    loading(true);
                    return;
                    $('#overyear').removeClass('active');
                    getParams();
                } else {
                    var tab;
                    if (($('.select_hospital').val() ? $('.select_hospital').val() : []).join(',') == [ids[index]].join(',')) {
                        $('.select_hospital').val('').trigger('change');
                        hospitalId = '';
                        tab = false;
                        index = 0;
                    } else {
                        $('.select_hospital').val([ids[index]]).trigger('change');
                        hospitalId = [ids[index]];
                        tab = true;
                    }
                    setUlHospital('desc', index, tab);
                    queryStatus.hospital = true;
                    queryTypeTop5Data();
                    queryModelTop5Data();
                }
            }
        }


        //查询筛选条件
        var typeIdArr;

        function querySearch(tag, tagId) {
            var url = "<%=basePath%>/hospital/search/" + (tag == 'hospital' ? 'department' : tag);
            $.ajax({
                type: "POST",
                data: {
                  hospitalId: hspId},
                url: url,
                async: false,
                dataType: "json",
                success: function (data) {
                    if (data.ret == 1) {
                        data.data = data.data || {list: []};
                        var searchData = data.data;
                        setSearch(tag, searchData);
                        $('.select_' + tag).select2({
                            placeholder: '<fmt:message key="share.sift.qxz"/>',
                            allowClear: true
                        });
                        ChooseBox.setSearchFromCookie(tag);
                        if (tag == 'type') {
                            searchDataGlobal = searchData;
                            $('.select_type').on('select2:select', function (param) {
                                typeIdArr = $('.select_type').val();
                                var id = param.params.data.id;
                                if (id < 2016102346) {
                                    for (var i = 0; i < searchDataGlobal[id].length; i++) {
                                        typeIdArr.push(searchDataGlobal[id][i].id)
                                    }
                                }
                                $('.select_type').val(typeIdArr).trigger('change');
                            });
                            $('.select_type').on('select2:unselect', function (param) {
                                typeIdArr = $('.select_type').val();
                                var id = param.params.data.id;
                                typeIdArr.removeByValue(id);
                                if (id < 2016102346) {
                                    for (var i = 0; i < searchDataGlobal[id].length; i++) {
                                        typeIdArr.removeByValue(searchDataGlobal[id][i].id)
                                    }
                                }
                                $('.select_type').val(typeIdArr).trigger('change');
                            });
                        }
                    } else {
                        if (data.msg == '该用户不存在') {
                            location.href = '<%=basePath%>';
                        } else {
                            flavrShowByTime(data.msg, null, "danger", false);
                        }
                    }
                },
                failure: function () {
                    flavrShowByTime(data.msg, null, "danger", false);
                }
            })
        }

        /* 设置搜索框搜索条件 */
        function setSearch(tag, data) {
            var first, second, id, str, str1;
            if (tag === "type") {
                str = '';
                first = data.first;
                for (var i = 0; i < first.length; i++) {
                    //一级设备
                    if ('${sessionScope.locale}'.indexOf('en') != -1) {
                        str += '<optgroup label="' + (first[i].enName || "") + '">' +
                            (function () {
                                str1 = '';
                                id = first[i].id;
                                if (data[id]) {
                                    //一级设备
                                    str1 = '<option value="' + first[i].id + '">' + (first[i].enName || "") + '</option>';
                                    second = data[id];
                                    for (var j = 0; j < second.length; j++) {
                                        //二级设备
                                        str1 += '<option value="' + second[j].id + '">' + (second[j].enName || "") + '</option>';
                                    }
                                } else {
                                    str1 = '<option value="' + first[i].id + '">' + (first[i].enName || "") + '</option>';
                                }
                                return str1;
                            })() +
                            '</optgroup>';
                    } else {
                        str += '<optgroup label="' + (first[i].name || "") + '">' +
                            (function () {
                                str1 = '';
                                id = first[i].id;
                                if (data[id]) {
                                    //一级设备
                                    str1 = '<option value="' + first[i].id + '">' + (first[i].name || "") + '</option>';
                                    second = data[id];
                                    for (var j = 0; j < second.length; j++) {
                                        //二级设备
                                        str1 += '<option value="' + second[j].id + '">' + (second[j].name || "") + '</option>';
                                    }
                                } else {
                                    str1 = '<option value="' + first[i].id + '">' + (first[i].name || "") + '</option>';
                                }
                                return str1;
                            })() +
                            '</optgroup>';
                    }
                }
                $(".select_type").append(str);
            } else {
                data = data.list;
                if (tag == 'department') {
                    if ('${sessionScope.locale}'.indexOf('en') != -1) {
                        for (var i = 0; i < data.length; i++) {
                            $(".select_" + 'hospital').append('<option value="' + data[i].id + '">' + (data[i].enName || "") + '</option>');
                        }
                    } else {
                        for (var i = 0; i < data.length; i++) {
                            $(".select_" + 'hospital').append('<option value="' + data[i].id + '">' + (data[i].name || "") + '</option>');
                        }
                    }
                } else {
                    if ('${sessionScope.locale}'.indexOf('en') != -1) {
                        for (var i = 0; i < data.length; i++) {
                            $(".select_" + tag).append('<option value="' + data[i].id + '">' + (data[i].enName || "") + '</option>');
                        }
                    } else {
                        for (var i = 0; i < data.length; i++) {
                            $(".select_" + tag).append('<option value="' + data[i].id + '">' + (data[i].name || "") + '</option>');
                        }
                    }
                }
            }

        }

        //全市详情
        function queryAllAssets() {
            $.ajax({
                type: "POST",
                url: "<%=basePath%>/charts/hospital/department-maintainer/overview",
                async: false,
                data: {
                  hospitalId: hspId,
                    departmentId: hospitalId ? JSON.stringify(hospitalId) : '',
                    riskId: riskId ? JSON.stringify(riskId) : '',
                    typeId: typeId ? JSON.stringify(typeId) : '',
                    brandId: brandId ? JSON.stringify(brandId) : '',
                    maintainerId: maintainerId,
                    year: year ? JSON.stringify(year) : '',
                    monthId: monthId ? JSON.stringify(monthId) : '',
                    enableYearStart: enableYearStart,
                    enableYearEnd: enableYearEnd,
                    priceStart: priceStart,
                    priceEnd: priceEnd,
                    ageLimitStart: ageLimitStart,
                    ageLimitEnd: ageLimitEnd
                },
                dataType: "json",
                success: function (data) {
                    if (data.ret == 1) {
                        data.data = data.data || {list: []};
                        data = data.data;
                        assets = data;
                        // 设备数量 及 去年同比
                        $('#count1-1').html(data.allAssets.curDeviceCounts || 0);
                        $('#yoy1-1').html(data.allAssets.curTotalRepairCounts || 0);
                        // 医院数量
                        $('#count1-2').html(parseFloat(data.allAssets.curOnceRepairRate || 0).toFixed(2) + ' %');
                        $('#yoy1-2').html(parseFloat(data.allAssets.curAvgOverallScore || 0).toFixed(2));
                        // 设备金额 及 去年同比
                        $('#count1-3').html(data.allAssets.curAvgResponseMin || 0);
                        $('#count1-4').html(data.allAssets.curAvgRepairUsedMin || 0);

                        // 设备数量 及 去年同比
                        $('#count2-1').html(data.list[0].curDeviceCounts || 0);
                        $('#yoy2-1').html(data.list[0].curTotalRepairCounts || 0);
                        // 医院数量
                        $('#count2-2').html(parseFloat(data.list[0].curOnceRepairRate || 0).toFixed(2) + ' %');
                        $('#yoy2-2').html(parseFloat(data.list[0].curAvgOverallScore || 0).toFixed(2));
                        // 设备金额 及 去年同比
                        $('#count2-3').html(data.list[0].curAvgResponseMin || 0);
                        $('#count2-4').html(data.list[0].curAvgRepairUsedMin || 0);

                        // 设备数量 及 去年同比
                        $('#count3-1').html(data.list[1].curDeviceCounts || 0);
                        $('#yoy3-1').html(data.list[1].curTotalRepairCounts || 0);
                        // 医院数量
                        $('#count3-2').html(parseFloat(data.list[1].curOnceRepairRate || 0).toFixed(2) + ' %');
                        $('#yoy3-2').html(parseFloat(data.list[1].curAvgOverallScore || 0).toFixed(2));
                        // 设备金额 及 去年同比
                        $('#count3-3').html(data.list[1].curAvgResponseMin || 0);
                        $('#count3-4').html(data.list[1].curAvgRepairUsedMin || 0);

                        // 一次维修率 及 维修时间
                        $('#count4-1').html(data.list[2].curDeviceCounts || 0);
                        $('#yoy4-1').html(data.list[2].curTotalRepairCounts || 0);
                        // 维修次数
                        $('#count4-2').html(parseFloat(data.list[2].curOnceRepairRate || 0).toFixed(2) + ' %');
                        $('#yoy4-2').html(parseFloat(data.list[2].curAvgOverallScore || 0).toFixed(2));
                        // 维修金额 及 去年同比
                        $('#count4-3').html(data.list[2].curAvgResponseMin || 0);
                        $('#count4-4').html(data.list[2].curAvgRepairUsedMin || 0);

                        addArrowYoy('.totle');
                    } else {
                        flavrShowByTime(data.msg, null, "danger", false);
                    }
                },
                failure: function () {
                    flavrShowByTime(data.msg, null, "danger", false);
                }
            });
        }


        //医院top5
        function setUlHospital(sortord, index, tab) {
            index = index ? index : 0;
            var len = xAxis.length;
            var x = 0,
                y = 0;
            if (index < 3) {
                x = 0;
            } else if (len - index < 3) {
                x = (len - 5) > 0 ? (len - 5) : 0;
            } else {
                x = index - 2;
            }
            y = len > 5 ? x + 5 : len;
            var percent, count;
            $("#ul_hospital").html('');
            for (var i = x; i < y; i++) {
                if (title == 0) {
                    percent = seriesTotalRepairCounts[i] || 0;
                    count = parseFloat(seriesOnceRepairRate[i]).toFixed(2);
                } else if (title == 1) {
                    percent = seriesAvgResponseMin[i] || 0;
                    count = seriesAvgRepairUsedMin[i] || 0;
                }
                $("#ul_hospital").append(
                    '<li><a title="' + (i + 1) + ' ' + fullName[i] + '"' + ((tab && i == index) ? 'class="active"' : '') + '><span class="fl data_span_f">' + xAxis[i] + '</span><em class="fl data_span_s">'
                    + percent + '</em><em class="fr jqmeter">'
                    + count + '</em></a></li>');
            }
            if (title == 0) { // 当选择巡检率、保养率时，TOP5显示进度条
                $('#ul_hospital .jqmeter').each(function () {
                    $(this).jQMeter({
                        goal: '$1,00',
                        raised: '$' + Math.round($(this).text()),
                        width: listcontentWidth - 20 + 'px',
                        height: '0.24rem'
                    });
                });
            }
        }

        //设置与图表对应的表的内容
        function setUlType(sortord, index, tab) {
            index = index ? index : 0;
            var len = xAxisType.length;
            var x = 0,
                y = 0;
            if (index < 3) {
                x = 0;
            } else if (len - index < 3) {
                x = (len - 5) > 0 ? (len - 5) : 0;
            } else {
                x = index - 2;
            }
            y = len > 5 ? x + 5 : len;
            var percent, count;
            $("#ul_type").html('');
            for (var i = x; i < y; i++) {
                if (title == 0) {
                    percent = seriesTotalRepairCountsType[i] || 0;
                    count = parseFloat(seriesOnceRepairRateType[i]).toFixed(2);
                } else if (title == 1) {
                    percent = seriesAvgResponseMinType[i] || 0;
                    count = seriesAvgRepairUsedMinType[i] || 0;
                }
                $("#ul_type").append(
                    '<li><a title="' + (i + 1) + ' ' + fullNameType[i] + '"><span class="fl data_span_f">' + xAxisType[i] + '</span><em class="fl data_span_s">'
                    + percent + '</em><em class="fr jqmeter">'
                    + count + '</em></a></li>'
                );
            }
            if (title == 0) { // 当选择巡检率、保养率时，TOP5显示进度条
                $('#ul_type .jqmeter').each(function () {
                    $(this).jQMeter({
                        goal: '$1,00',
                        raised: '$' + Math.round($(this).text()),
                        width: listcontentWidth - 20 + 'px',
                        height: '0.24rem'
                    });
                });
            }
        }

        //设备厂家top5
        function setUlModel(sortord, index) {
            index = index ? index : 0;
            var len = xAxisModel.length;
            var x = 0,
                y = 0;
            if (index < 3) {
                x = 0;
            } else if (len - index < 3) {
                x = (len - 5) > 0 ? (len - 5) : 0;
            } else {
                x = index - 2;
            }
            y = len > 5 ? x + 5 : len;
            var percent, count;
            $("#ul_model").html('');
            for (var i = x; i < y; i++) {
                if (title == 0) {
                    percent = seriesTotalRepairCountsModel[i] || 0;
                    count = parseFloat(seriesOnceRepairRateModel[i]).toFixed(2);
                } else if (title == 1) {
                    percent = seriesAvgResponseMinModel[i] || 0;
                    count = seriesAvgRepairUsedMinModel[i] || 0;
                }
                $("#ul_model").append(
                    '<li><a title="' + (i + 1) + ' ' + fullNameModel[i] + '"><span class="fl data_span_f">' + xAxisModel[i] + '</span><em class="fl data_span_s">'
                    + percent + '</em><em class="fr jqmeter">'
                    + count + '</em></a></li>');
            }
            if (title == 0) { // 当选择巡检率、保养率时，TOP5显示进度条
                $('#ul_model .jqmeter').each(function () {
                    $(this).jQMeter({
                        goal: '$1,00',
                        raised: '$' + Math.round($(this).text()),
                        width: listcontentWidth - 20 + 'px',
                        height: '0.24rem'
                    });
                });
            }
        }


        //获取筛选条件参数
        function getParams() {
            loading(function () {
                $('#tag').next().show();
                $('.quadrantContainner').show();
                $('.quadrant').removeClass('active');
                showYearTop5();
                $('.option_overyear').html('<fmt:message key="charts.button.yfxs"/>').removeClass('active');
                $('#moredetail').html('<fmt:message key="charts.title.yyksfb"/>').off().on('click', morehospitals);

                hospitalId = $('.select_hospital').val() ? $('.select_hospital').val() : '';
                riskId = $('.select_risk').val() ? $('.select_risk').val() : '';
                typeId = $('.select_type').val() ? $('.select_type').val() : '';
                brandId = $('.select_brand').val() ? $('.select_brand').val() : '';
                year = $('.select_year').val() ? $('.select_year').val() : '';
                monthId = $('.select_month').val() ? $('.select_month').val() : '';
                enableYearStart = $('#enableYearStart').val() ? $('#enableYearStart').val() : '';
                enableYearEnd = $('#enableYearEnd').val() ? $('#enableYearEnd').val() : '';
                priceStart = $('#priceStart').val() ? $('#priceStart').val() * CONST : '';
                priceEnd = $('#priceEnd').val() ? $('#priceEnd').val() * CONST : '';
                ageLimitStart = $('#ageLimitStart').val() ? $('#ageLimitStart').val() : '';
                ageLimitEnd = $('#ageLimitEnd').val() ? $('#ageLimitEnd').val() : '';

                $.cookie('chooseValue', JSON.stringify({
                    hospitalId: hospitalId,
                    riskId: riskId,
                    typeId: typeId,
                    brandId: brandId,
                    year: year,
                    monthId: monthId,
                    enableYearStart: enableYearStart,
                    enableYearEnd: enableYearEnd,
                    priceStart: priceStart,
                    priceEnd: priceEnd,
                    ageLimitStart: ageLimitStart,
                    ageLimitEnd: ageLimitEnd
                }), {path: '/'});

                queryAllAssets();
                queryChartsData();
                queryTypeTop5Data();
                queryModelTop5Data();
            });
        }


        // 获取图表数据(医院)
        function queryChartsData(tableId) {
            ids = [];
            xAxis = [];
            seriesHospitalCounts = [];      //医院数量
            seriesDeviceTypeCounts = [];    //设备类型数量
            seriesDeviceCounts = [];        //设备数量
            seriesOnceRepairRate = [];      //一次修复率
            seriesOnceRepairRateYoy = [];   //一次修复率同比
            seriesAvgResponseMin = [];      //平均响应时间
            seriesAvgResponseMinYoy = [];   //平均响应时间同比
            seriesAvgRepairUsedMin = [];    //平均维修时间
            seriesAvgRepairUsedMinYoy = []; //平均维修时间同比
            seriesBigRepairCounts = [];     //大维修数量
            seriesMiddleRepairCounts = [];  //中维修数量
            seriesSmallRepairCounts = [];   //小维修数量
            seriesTotalRepairCounts = [];   //总维修数量
            seriesAvgOverallScore = [];     //整体平均评分
            seriesAvgSpeedScore = [];       //响应速度平均评分
            seriesAvgQualityScore = [];     //服务质量平均评分
            seriesAvgAttitudeScor = [];     //服务态度平均评分
            series = [];                    //气泡图数据
            fullName = [];
            $.ajax({
                type: "POST",
                url: '<%=basePath%>/charts/hospital/department-maintainer/department',
                data: {
                  hospitalId: hspId,
                    departmentId: hospitalId ? JSON.stringify(hospitalId) : '',
                    riskId: riskId ? JSON.stringify(riskId) : '',
                    typeId: typeId ? JSON.stringify(typeId) : '',
                    brandId: brandId ? JSON.stringify(brandId) : '',
                    maintainerId: maintainerId,
                    year: year ? JSON.stringify(year) : '',
                    monthId: monthId ? JSON.stringify(monthId) : '',
                    enableYearStart: enableYearStart,
                    enableYearEnd: enableYearEnd,
                    priceStart: priceStart,
                    priceEnd: priceEnd,
                    ageLimitStart: ageLimitStart,
                    ageLimitEnd: ageLimitEnd
                },
                dataType: "json",
                success: function (data) {
                    if (data.ret == 1) {
                        data.data = data.data || {list: []};
                        if (data.data.list) {
                            for (var i = 0; i < data.data.list.length; i++) {
                                if ('${sessionScope.locale}'.indexOf('en') != -1) {
                                    xAxis.push(data.data.list[i].enName || '');
                                    fullName.push(data.data.list[i].fullEnName || '');
                                } else {
                                    xAxis.push(data.data.list[i].name || '');
                                    fullName.push(data.data.list[i].fullName || '');
                                }
                                ids.push(data.data.list[i].id || '');
                                seriesHospitalCounts.push(data.data.list[i].curHospitalCounts || 0);
                                seriesDeviceTypeCounts.push(data.data.list[i].curDeviceTypeCounts || 0);
                                seriesDeviceCounts.push(data.data.list[i].curDeviceCounts || 0);
                                seriesOnceRepairRate.push(parseFloat(data.data.list[i].curOnceRepairRate || 0).toFixed(2));
                                seriesOnceRepairRateYoy.push(parseFloat(data.data.list[i].onceRepairRateYoy || 0).toFixed(2));
                                seriesAvgResponseMin.push(parseFloat(data.data.list[i].curAvgResponseMin || 0).toFixed(2));
                                seriesAvgResponseMinYoy.push(parseFloat(data.data.list[i].avgResponseMinYoy || 0).toFixed(2));
                                seriesAvgRepairUsedMin.push(parseFloat(data.data.list[i].curAvgRepairUsedMin || 0).toFixed(2));
                                seriesAvgRepairUsedMinYoy.push(parseFloat(data.data.list[i].avgRepairUsedMinYoy || 0).toFixed(2));
                                seriesBigRepairCounts.push(data.data.list[i].curBigRepairCounts || 0);
                                seriesMiddleRepairCounts.push(data.data.list[i].curMiddleRepairCounts || 0);
                                seriesSmallRepairCounts.push(data.data.list[i].curSmallRepairCounts || 0);
                                seriesTotalRepairCounts.push(data.data.list[i].curTotalRepairCounts || 0);
                                seriesAvgOverallScore.push(parseFloat(data.data.list[i].curAvgOverallScore || 0).toFixed(2));
                                seriesAvgSpeedScore.push(parseFloat(data.data.list[i].curAvgSpeedScore || 0).toFixed(2));
                                seriesAvgQualityScore.push(parseFloat(data.data.list[i].curAvgQualityScore || 0).toFixed(2));
                                seriesAvgAttitudeScor.push(parseFloat(data.data.list[i].curAvgAttitudeScor || 0).toFixed(2));
                                series.push([parseFloat(data.data.list[i].curOnceRepairRate || 0).toFixed(2), (data.data.list[i].curTotalRepairCounts || 0), 50, data.data.list[i].name]);    //气泡图数据
                            }
                            curOnceRepairRate = parseFloat(assets.allAssets.curOnceRepairRate || 0).toFixed(2);
                            avgToRepairCounts = parseFloat(data.data.avgToRepairCounts || 0).toFixed(2);
                        }
                    } else {
                        flavrShowByTime(data.msg, null, "danger", false);
                    }
                    setChatsData(0);
                    setUlHospital('desc', 0);
                    if ((!$('#modal').is(':hidden')) && ($('#modal').attr('modal') == 'hospital')) morehospitals();

                    queryStatus.hospital = true;
                    if (queryStatus.getStatus()) {
                        loading(true);
                        queryStatus.resetStatus();
                    }
                },
                failure: function () {
                    flavrShowByTime(data.msg, null, "danger", false);
                }
            })
        }

        function setChatsData(tag) {
            title = tag;
            if (tag == 0) {
                sort('desc', seriesOnceRepairRate, ids, xAxis, seriesHospitalCounts, seriesDeviceTypeCounts, seriesDeviceCounts, seriesOnceRepairRateYoy, seriesAvgResponseMin, seriesAvgResponseMinYoy, seriesAvgRepairUsedMin, seriesAvgRepairUsedMinYoy, seriesBigRepairCounts, seriesMiddleRepairCounts, seriesSmallRepairCounts, seriesTotalRepairCounts, seriesAvgOverallScore, seriesAvgSpeedScore, seriesAvgQualityScore, seriesAvgAttitudeScor, fullName);
                sort('desc', seriesOnceRepairRateType, idsType, xAxisType, seriesHospitalCountsType, seriesDeviceTypeCountsType, seriesDeviceCountsType, seriesOnceRepairRateYoyType, seriesAvgResponseMinType, seriesAvgResponseMinYoyType, seriesAvgRepairUsedMinType, seriesAvgRepairUsedMinYoyType, seriesBigRepairCountsType, seriesMiddleRepairCountsType, seriesSmallRepairCountsType, seriesTotalRepairCountsType, seriesAvgOverallScoreType, seriesAvgSpeedScoreType, seriesAvgQualityScoreType, seriesAvgAttitudeScorType, fullNameType);
                sort('desc', seriesOnceRepairRateModel, idsModel, xAxisModel, seriesHospitalCountsModel, seriesDeviceTypeCountsModel, seriesDeviceCountsModel, seriesOnceRepairRateYoyModel, seriesAvgResponseMinModel, seriesAvgResponseMinYoyModel, seriesAvgRepairUsedMinModel, seriesAvgRepairUsedMinYoyModel, seriesBigRepairCountsModel, seriesMiddleRepairCountsModel, seriesSmallRepairCountsModel, seriesTotalRepairCountsModel, seriesAvgOverallScoreModel, seriesAvgSpeedScoreModel, seriesAvgQualityScoreModel, seriesAvgAttitudeScorModel, fullNameModel);
                $('.quadrantContainner').show();
                $('.quadrant').removeClass('active');
                $('.listpercent').html('<fmt:message key="maintain.overview.wsx"/>');
                $('.listcontent').html('<fmt:message key="maintainer.assets.ycxfl(%)"/>');

                series = [];
                for (var i = 0; i < xAxis.length; i++) {
                    series.push([seriesOnceRepairRate[i], seriesTotalRepairCounts[i], 50, xAxis[i]]);
                }
                optionAgelimit.series[0].data = series;
                optionAgelimit.series[0].markLine.data[0].xAxis = curOnceRepairRate;
                optionAgelimit.series[0].markLine.data[1].yAxis = avgToRepairCounts;
                chart.clear();
                chart.setOption(optionAgelimit);
            } else if (tag == 1) {
                sort('desc', seriesAvgRepairUsedMin, seriesOnceRepairRate, ids, xAxis, seriesHospitalCounts, seriesDeviceTypeCounts, seriesDeviceCounts, seriesOnceRepairRateYoy, seriesAvgResponseMin, seriesAvgResponseMinYoy, seriesAvgRepairUsedMinYoy, seriesBigRepairCounts, seriesMiddleRepairCounts, seriesSmallRepairCounts, seriesTotalRepairCounts, seriesAvgOverallScore, seriesAvgSpeedScore, seriesAvgQualityScore, seriesAvgAttitudeScor, fullName);
                sort('desc', seriesAvgResponseMinType, seriesOnceRepairRateType, idsType, xAxisType, seriesHospitalCountsType, seriesDeviceTypeCountsType, seriesDeviceCountsType, seriesOnceRepairRateYoyType, seriesAvgResponseMinYoyType, seriesAvgRepairUsedMinType, seriesAvgRepairUsedMinYoyType, seriesBigRepairCountsType, seriesMiddleRepairCountsType, seriesSmallRepairCountsType, seriesTotalRepairCountsType, seriesAvgOverallScoreType, seriesAvgSpeedScoreType, seriesAvgQualityScoreType, seriesAvgAttitudeScorType, fullNameType);
                sort('desc', seriesAvgResponseMinModel, seriesOnceRepairRateModel, idsModel, xAxisModel, seriesHospitalCountsModel, seriesDeviceTypeCountsModel, seriesDeviceCountsModel, seriesOnceRepairRateYoyModel, seriesAvgResponseMinYoyModel, seriesAvgRepairUsedMinModel, seriesAvgRepairUsedMinYoyModel, seriesBigRepairCountsModel, seriesMiddleRepairCountsModel, seriesSmallRepairCountsModel, seriesTotalRepairCountsModel, seriesAvgOverallScoreModel, seriesAvgSpeedScoreModel, seriesAvgQualityScoreModel, seriesAvgAttitudeScorModel, fullNameModel);
                $('.quadrantContainner').hide();
                $('.listpercent').html('<fmt:message key="maintian.assets.pjxysj(fz)"/>');
                $('.listcontent').html('<fmt:message key="maintian.assets.pjwxsj(fz)"/>');
                optionB1.xAxis.data = xAxis;
                optionB1.series[0].data = seriesAvgResponseMin;
                optionB1.series[1].data = seriesAvgRepairUsedMin;
                //图表滚动条
                if (xAxis.length > 12) {
                    optionB1.dataZoom[0].end = 1200 / xAxis.length;
                } else {
                    optionB1.dataZoom[0].end = 100;
                }
                chart.clear();
                chart.setOption(optionB1);
            }
        }

        // 获取图表数据(设备类型)
        function queryTypeTop5Data(tableId) {
            idsType = [];
            xAxisType = [];
            seriesHospitalCountsType = [];      //医院数量
            seriesDeviceTypeCountsType = [];    //设备类型数量
            seriesDeviceCountsType = [];        //设备数量
            seriesOnceRepairRateType = [];      //一次修复率
            seriesOnceRepairRateYoyType = [];   //一次修复率同比
            seriesAvgResponseMinType = [];      //平均响应时间
            seriesAvgResponseMinYoyType = [];   //平均响应时间同比
            seriesAvgRepairUsedMinType = [];    //平均维修时间
            seriesAvgRepairUsedMinYoyType = []; //平均维修时间同比
            seriesBigRepairCountsType = [];     //大维修数量
            seriesMiddleRepairCountsType = [];  //中维修数量
            seriesSmallRepairCountsType = [];   //小维修数量
            seriesTotalRepairCountsType = [];   //总维修数量
            seriesAvgOverallScoreType = [];     //整体平均评分
            seriesAvgSpeedScoreType = [];       //响应速度平均评分
            seriesAvgQualityScoreType = [];     //服务质量平均评分
            seriesAvgAttitudeScorType = [];     //服务态度平均评分
            fullNameType = [];
            $.ajax({
                type: "POST",
                url: '<%=basePath%>/charts/hospital/department-maintainer/type',
                data: {
                  hospitalId: hspId,
                    departmentId: hospitalId ? JSON.stringify(hospitalId) : '',
                    riskId: riskId ? JSON.stringify(riskId) : '',
                    typeId: typeId ? JSON.stringify(typeId) : '',
                    brandId: brandId ? JSON.stringify(brandId) : '',
                    maintainerId: maintainerId,
                    year: year ? JSON.stringify(year) : '',
                    monthId: monthId ? JSON.stringify(monthId) : '',
                    enableYearStart: enableYearStart,
                    enableYearEnd: enableYearEnd,
                    priceStart: priceStart,
                    priceEnd: priceEnd,
                    ageLimitStart: ageLimitStart,
                    ageLimitEnd: ageLimitEnd
                },
                dataType: "json",
                success: function (data) {
                    if (data.ret == 1) {
                        data.data = data.data || {list: []};
                        if (data.data.list) {
                            for (var i = 0; i < data.data.list.length; i++) {
                                if ('${sessionScope.locale}'.indexOf('en') != -1) {
                                    xAxisType.push(data.data.list[i].enName || '');
                                    fullNameType.push(data.data.list[i].fullEnName || '');
                                } else {
                                    xAxisType.push(data.data.list[i].name || '');
                                    fullNameType.push(data.data.list[i].fullName || '');
                                }
                                idsType.push(data.data.list[i].id || '');
                                seriesHospitalCountsType.push(data.data.list[i].curHospitalCounts || 0);
                                seriesDeviceTypeCountsType.push(data.data.list[i].curDeviceTypeCounts || 0);
                                seriesDeviceCountsType.push(data.data.list[i].curDeviceCounts || 0);
                                seriesOnceRepairRateType.push(parseFloat(data.data.list[i].curOnceRepairRate || 0).toFixed(2));
                                seriesOnceRepairRateYoyType.push(parseFloat(data.data.list[i].onceRepairRateYoy || 0).toFixed(2));
                                seriesAvgResponseMinType.push(parseFloat(data.data.list[i].curAvgResponseMin || 0).toFixed(2));
                                seriesAvgResponseMinYoyType.push(parseFloat(data.data.list[i].avgResponseMinYoy || 0).toFixed(2));
                                seriesAvgRepairUsedMinType.push(parseFloat(data.data.list[i].curAvgRepairUsedMin || 0).toFixed(2));
                                seriesAvgRepairUsedMinYoyType.push(parseFloat(data.data.list[i].avgRepairUsedMinYoy || 0).toFixed(2));
                                seriesBigRepairCountsType.push(data.data.list[i].curBigRepairCounts || 0);
                                seriesMiddleRepairCountsType.push(data.data.list[i].curMiddleRepairCounts || 0);
                                seriesSmallRepairCountsType.push(data.data.list[i].curSmallRepairCounts || 0);
                                seriesTotalRepairCountsType.push(data.data.list[i].curTotalRepairCounts || 0);
                                seriesAvgOverallScoreType.push(parseFloat(data.data.list[i].curAvgOverallScore || 0).toFixed(2));
                                seriesAvgSpeedScoreType.push(parseFloat(data.data.list[i].curAvgSpeedScore || 0).toFixed(2));
                                seriesAvgQualityScoreType.push(parseFloat(data.data.list[i].curAvgQualityScore || 0).toFixed(2));
                                seriesAvgAttitudeScorType.push(parseFloat(data.data.list[i].curAvgAttitudeScor || 0).toFixed(2));
                            }
                            sort('desc', seriesOnceRepairRateType, idsType, xAxisType, seriesHospitalCountsType, seriesDeviceTypeCountsType, seriesDeviceCountsType, seriesOnceRepairRateYoyType, seriesAvgResponseMinType, seriesAvgResponseMinYoyType, seriesAvgRepairUsedMinType, seriesAvgRepairUsedMinYoyType, seriesBigRepairCountsType, seriesMiddleRepairCountsType, seriesSmallRepairCountsType, seriesTotalRepairCountsType, seriesAvgOverallScoreType, seriesAvgSpeedScoreType, seriesAvgQualityScoreType, seriesAvgAttitudeScorType, fullNameType);
                        }
                    } else {
                        flavrShowByTime(data.msg, null, "danger", false);
                    }
                    setUlType('desc', 0);
                    if ((!$('#modal').is(':hidden')) && ($('#modal').attr('modal') == 'type')) moretypes();

                    queryStatus.type = true;
                    if (queryStatus.getStatus()) {
                        loading(true);
                        queryStatus.resetStatus();
                    }
                },
                failure: function () {
                    flavrShowByTime(data.msg, null, "danger", false);
                }
            })
        }

        // 获取图表数据(设备厂家)
        function queryModelTop5Data(tableId) {
            idsModel = [];
            xAxisModel = [];
            seriesHospitalCountsModel = [];      //医院数量
            seriesDeviceTypeCountsModel = [];    //设备类型数量
            seriesDeviceCountsModel = [];        //设备数量
            seriesOnceRepairRateModel = [];      //一次修复率
            seriesOnceRepairRateYoyModel = [];   //一次修复率同比
            seriesAvgResponseMinModel = [];      //平均响应时间
            seriesAvgResponseMinYoyModel = [];   //平均响应时间同比
            seriesAvgRepairUsedMinModel = [];    //平均维修时间
            seriesAvgRepairUsedMinYoyModel = []; //平均维修时间同比
            seriesBigRepairCountsModel = [];     //大维修数量
            seriesMiddleRepairCountsModel = [];  //中维修数量
            seriesSmallRepairCountsModel = [];   //小维修数量
            seriesTotalRepairCountsModel = [];   //总维修数量
            seriesAvgOverallScoreModel = [];     //整体平均评分
            seriesAvgSpeedScoreModel = [];       //响应速度平均评分
            seriesAvgQualityScoreModel = [];     //服务质量平均评分
            seriesAvgAttitudeScorModel = [];     //服务态度平均评分
            fullNameModel = [];
            $.ajax({
                type: "POST",
                url: '<%=basePath%>/charts/hospital/department-maintainer/model',
                data: {
                  hospitalId: hspId,
                    departmentId: hospitalId ? JSON.stringify(hospitalId) : '',
                    riskId: riskId ? JSON.stringify(riskId) : '',
                    typeId: typeId ? JSON.stringify(typeId) : '',
                    brandId: brandId ? JSON.stringify(brandId) : '',
                    maintainerId: maintainerId,
                    year: year ? JSON.stringify(year) : '',
                    monthId: monthId ? JSON.stringify(monthId) : '',
                    enableYearStart: enableYearStart,
                    enableYearEnd: enableYearEnd,
                    priceStart: priceStart,
                    priceEnd: priceEnd,
                    ageLimitStart: ageLimitStart,
                    ageLimitEnd: ageLimitEnd
                },
                dataType: "json",
                success: function (data) {
                    if (data.ret == 1) {
                        data.data = data.data || {list: []};
                        if (data.data.list) {
                            for (var i = 0; i < data.data.list.length; i++) {
                                idsModel.push(data.data.list[i].id || '');
                                xAxisModel.push(data.data.list[i].name || '');
                                seriesHospitalCountsModel.push(data.data.list[i].curHospitalCounts || 0);
                                seriesDeviceTypeCountsModel.push(data.data.list[i].curDeviceTypeCounts || 0);
                                seriesDeviceCountsModel.push(data.data.list[i].curDeviceCounts || 0);
                                seriesOnceRepairRateModel.push(parseFloat(data.data.list[i].curOnceRepairRate || 0).toFixed(2));
                                seriesOnceRepairRateYoyModel.push(parseFloat(data.data.list[i].onceRepairRateYoy || 0).toFixed(2));
                                seriesAvgResponseMinModel.push(parseFloat(data.data.list[i].curAvgResponseMin || 0).toFixed(2));
                                seriesAvgResponseMinYoyModel.push(parseFloat(data.data.list[i].avgResponseMinYoy || 0).toFixed(2));
                                seriesAvgRepairUsedMinModel.push(parseFloat(data.data.list[i].curAvgRepairUsedMin || 0).toFixed(2));
                                seriesAvgRepairUsedMinYoyModel.push(parseFloat(data.data.list[i].avgRepairUsedMinYoy || 0).toFixed(2));
                                seriesBigRepairCountsModel.push(data.data.list[i].curBigRepairCounts || 0);
                                seriesMiddleRepairCountsModel.push(data.data.list[i].curMiddleRepairCounts || 0);
                                seriesSmallRepairCountsModel.push(data.data.list[i].curSmallRepairCounts || 0);
                                seriesTotalRepairCountsModel.push(data.data.list[i].curTotalRepairCounts || 0);
                                seriesAvgOverallScoreModel.push(parseFloat(data.data.list[i].curAvgOverallScore || 0).toFixed(2));
                                seriesAvgSpeedScoreModel.push(parseFloat(data.data.list[i].curAvgSpeedScore || 0).toFixed(2));
                                seriesAvgQualityScoreModel.push(parseFloat(data.data.list[i].curAvgQualityScore || 0).toFixed(2));
                                seriesAvgAttitudeScorModel.push(parseFloat(data.data.list[i].curAvgAttitudeScor || 0).toFixed(2));
                                fullNameModel.push(data.data.list[i].fullName || '');
                            }
                            sort('desc', seriesOnceRepairRateModel, idsModel, xAxisModel, seriesHospitalCountsModel, seriesDeviceTypeCountsModel, seriesDeviceCountsModel, seriesOnceRepairRateYoyModel, seriesAvgResponseMinModel, seriesAvgResponseMinYoyModel, seriesAvgRepairUsedMinModel, seriesAvgRepairUsedMinYoyModel, seriesBigRepairCountsModel, seriesMiddleRepairCountsModel, seriesSmallRepairCountsModel, seriesTotalRepairCountsModel, seriesAvgOverallScoreModel, seriesAvgSpeedScoreModel, seriesAvgQualityScoreModel, seriesAvgAttitudeScorModel, fullNameModel);
                        }
                    } else {
                        flavrShowByTime(data.msg, null, "danger", false);
                    }
                    setUlModel('desc', 0);
                    if ((!$('#modal').is(':hidden')) && ($('#modal').attr('modal') == 'modal')) moremodals();

                    queryStatus.model = true;
                    if (queryStatus.getStatus()) {
                        loading(true);
                        queryStatus.resetStatus();
                    }
                },
                failure: function () {
                    flavrShowByTime('请求失败', null, "danger", false);
                }
            })
        }

        $('#moredetail, #morehospitals').click(morehospitals);

        function morehospitals() {
            loading(function () {
                $('#modal').attr('modal', 'hospital');
                var sb = new StringBuffer();
                $("#tblSort").html('<tbody id="table_data"></tbody>');
                sb.append("<thead><tr><th class='text-center'>#</th>");
                //表头
                sb.append("<th class='text-left'><fmt:message key="share.table.head.yyks"/></th>");

                //表格内容
                sb.append("<th class='text-right'><fmt:message key="maintainer.table.ycxfl(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.ycxfltb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.wxcs(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.kssl(g)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.sbsl(t)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.sblxsl(z)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysj(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysjtb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsj(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsjtb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.dwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.zwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.xwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.ztpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.xysdpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.fwzlpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.fwtdpjpf(fz)"/></th>"
                    + "</tr></thead>");
                $("#tblSort").prepend(sb.toString());
                for (var i = 0; i < xAxis.length; i++) {
                    $("#table_data").append("<tr>"
                        + "<td class='no-cal text-center'>" + (i + 1) + "<span id='detail-" + (i + 1) + "' class='fa fa-plus' style='color: #5395ec;cursor: pointer;margin-left: 5px' onclick='query(\"hospital\", \"" + ids[i] + "\", \"" + (i + 1) + "\")'></span></td>"
                        + "<td class='no-cal text-left spanTitle' onclick='query(\"hospital\", \"" + ids[i] + "\")'>" + xAxis[i] + "</td>"
                        + "<td class='avg-1 text-right'>" + parseFloat(seriesOnceRepairRate[i]).toFixed(2) + "</td>"
                        + "<td class='avg-2 text-right yoy'>" + parseFloat(seriesOnceRepairRateYoy[i]).toFixed(2) + "</td>"
                        + "<td class='total-3 text-right'>" + seriesTotalRepairCounts[i] + "</td>"
                        + "<td class='total-4 text-right'>" + seriesHospitalCounts[i] + "</td>"
                        + "<td class='total-5 text-right'>" + seriesDeviceCounts[i] + "</td>"
                        + "<td class='total-6 text-right'>" + seriesDeviceTypeCounts[i] + "</td>"
                        + "<td class='total-7 text-right'>" + seriesAvgResponseMin[i] + "</td>"
                        + "<td class='avg-8 text-right yoy'>" + parseFloat(seriesAvgResponseMinYoy[i]).toFixed(2) + "</td>"
                        + "<td class='total-9 text-right'>" + seriesAvgRepairUsedMin[i] + "</td>"
                        + "<td class='avg-10 text-right yoy'>" + seriesAvgRepairUsedMinYoy[i] + "</td>"
                        + "<td class='total-11 text-right'>" + seriesBigRepairCounts[i] + "</td>"
                        + "<td class='total-12 text-right'>" + seriesMiddleRepairCounts[i] + "</td>"
                        + "<td class='total-13 text-right'>" + seriesSmallRepairCounts[i] + "</td>"
                        + "<td class='avg-14 text-right'>" + parseFloat(seriesAvgOverallScore[i]).toFixed(2) + "</td>"
                        + "<td class='avg-15 text-right'>" + parseFloat(seriesAvgSpeedScore[i]).toFixed(2) + "</td>"
                        + "<td class='avg-16 text-right'>" + parseFloat(seriesAvgQualityScore[i]).toFixed(2) + "</td>"
                        + "<td class='avg-17 text-right'>" + parseFloat(seriesAvgAttitudeScor[i]).toFixed(2) + "</td>"
                        + "</tr><tr class='hide detail-tr-" + (i + 1) + "'><td colspan='2' style='display:none;'><td colspan='99' style='padding-right: 0'><div class='detail-div detail-div-" + (i + 1) + "' style='padding-left: 40px'>\
                    <table id='detail-table-" + (i + 1) + "' class='table table-striped table-hover detail-table'>\
                        <tbody></tbody>\
                    </table></div></td></tr>");
                }
                calTableData('tblSort');
                $('#modal').iziModal('setTitle', '<fmt:message key="charts.title.yyksfb"/>');
                $('#modal').iziModal('open', this);
                loading(true);
            });
        }

        $('#moretypes').click(moretypes);

        function moretypes() {
            loading(function () {
                $('#modal').attr('modal', 'type');
                var sb = new StringBuffer();
                $("#tblSort").html('<tbody id="table_data"></tbody>');
                sb.append("<thead><tr><th class='text-center'>#</th>");
                //表头
                sb.append("<th class='text-left'><fmt:message key="share.table.head.sblx"/></th>");

                //表格内容
                sb.append("<th class='text-right'><fmt:message key="maintainer.table.ycxfl(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.ycxfltb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.wxcs(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.kssl(g)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.sbsl(t)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.sblxsl(z)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysj(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysjtb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsj(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsjtb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.dwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.zwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.xwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.ztpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.xysdpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.fwzlpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.fwtdpjpf(fz)"/></th>"
                    + "</tr></thead>");
                $("#tblSort").prepend(sb.toString());
                for (var i = 0; i < xAxisType.length; i++) {
                    $("#table_data").append("<tr>"
                        + "<td class='no-cal text-center'>" + (i + 1) + "</td>"
                        + "<td class='no-cal text-left spanTitle' onclick='query(\"hospital\",\"" + idsType[i] + "\")'>" + xAxisType[i] + "</td>"
                        + "<td class='avg-1 text-right'>" + parseFloat(seriesOnceRepairRateType[i]).toFixed(2) + "</td>"
                        + "<td class='avg-2 text-right yoy'>" + parseFloat(seriesOnceRepairRateYoyType[i]).toFixed(2) + "</td>"
                        + "<td class='total-3 text-right'>" + seriesTotalRepairCountsType[i] + "</td>"
                        + "<td class='total-4 text-right'>" + seriesHospitalCountsType[i] + "</td>"
                        + "<td class='total-5 text-right'>" + seriesDeviceCountsType[i] + "</td>"
                        + "<td class='total-6 text-right'>" + seriesDeviceTypeCountsType[i] + "</td>"
                        + "<td class='total-7 text-right'>" + seriesAvgResponseMinType[i] + "</td>"
                        + "<td class='avg-8 text-right yoy'>" + parseFloat(seriesAvgResponseMinYoyType[i]).toFixed(2) + "</td>"
                        + "<td class='total-9 text-right'>" + seriesAvgRepairUsedMinType[i] + "</td>"
                        + "<td class='avg-10 text-right yoy'>" + seriesAvgRepairUsedMinYoyType[i] + "</td>"
                        + "<td class='total-11 text-right'>" + seriesBigRepairCountsType[i] + "</td>"
                        + "<td class='total-12 text-right'>" + seriesMiddleRepairCountsType[i] + "</td>"
                        + "<td class='total-13 text-right'>" + seriesSmallRepairCountsType[i] + "</td>"
                        + "<td class='avg-14 text-right'>" + parseFloat(seriesAvgOverallScoreType[i]).toFixed(2) + "</td>"
                        + "<td class='avg-15 text-right'>" + parseFloat(seriesAvgSpeedScoreType[i]).toFixed(2) + "</td>"
                        + "<td class='avg-16 text-right'>" + parseFloat(seriesAvgQualityScoreType[i]).toFixed(2) + "</td>"
                        + "<td class='avg-17 text-right'>" + parseFloat(seriesAvgAttitudeScorType[i]).toFixed(2) + "</td>"
                        + "</tr>");
                }
                calTableData('tblSort', true);
                $('#modal').iziModal('setTitle', '<fmt:message key="charts.title.sblxfb"/>');
                $('#modal').iziModal('open', this);
                loading(true);
            });
        }

        function query(tag, id, detailId) {
            if (detailId) {
                if (tag == 'hospital') {
                    departmentName = [id];
                }
                queryDeviceData(detailId);
            } else if (tag == 'hospital') {
                location.href = '<%=basePath%>/charts/hospital/type-index/page?departmentId=' + id + '&hospitalId=' + hspId;
            } else if (tag == 'type') {
                location.href = '<%=basePath%>/charts/hospital/model-index/page?typeId=' + id + '&hospitalId=' + hspId;
            } else if (tag == 'device' && deviceRedirect) {
                window.open('<%=basePath%>/charts/overview/assets/page?deviceId=' + id);
            }
        }

        // 通过设备型号查找设备(设备类型)
        function queryDeviceData(detailId) {
            if ($(".detail-tr-" + detailId).hasClass("hide")) {
                $(".detail-tr-" + detailId).removeClass("hide");
                $("#detail-" + detailId).removeClass("fa-plus");
                $("#detail-" + detailId).addClass("fa-minus");
                $.ajax({
                    type: "POST",
                    url: '<%=basePath%>/charts/hospital/department-maintainer/device',
                    data: {
                      hospitalId: hspId,
                        riskId: riskId ? JSON.stringify(riskId) : '',
                        departmentId: departmentName ? JSON.stringify(departmentName) : '',
                        typeId: typeId ? JSON.stringify(typeId) : '',
                        brandId: brandId ? JSON.stringify(brandId) : '',
                        maintainerId: maintainerId,
                        year: year ? JSON.stringify(year) : '',
                        monthId: monthId ? JSON.stringify(monthId) : '',
                        enableYearStart: enableYearStart,
                        enableYearEnd: enableYearEnd,
                        priceStart: priceStart,
                        priceEnd: priceEnd,
                        ageLimitStart: ageLimitStart,
                        ageLimitEnd: ageLimitEnd
                    },
                    dataType: "json",
                    success: function (data) {
                        if (data.ret == 1) {
                            data.data = data.data || {list: []};
                            if (data.data.list.length) {
                                var sb = new StringBuffer();
                                $("#detail-table-" + detailId).html('<tbody id="table_data"></tbody>');
                                sb.append("<thead><tr><th class='text-center'>#</th>");
                                //表头
                                sb.append("<th class='text-left'><fmt:message key="share.table.head.sbmc"/></th>");

                                //表格内容
                                sb.append("<th class='text-left'><fmt:message key="share.assets.sbxh"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.assets.ssks"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.assets.snbh"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.assets.zcbh"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.table.head.sbcj"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.assets.sbje(wy)"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.assets.zjje(wy)"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.assets.sbqyrq"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.assets.ysysj(n)"/></th>"
                                    + "<th class='text-left'><fmt:message key="share.assets.nxzs"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.table.wxcs(c)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.assets.blsj(c)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysj(fz)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsj(fz)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.assets.whl(%)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.assets.ycxfl(%)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.assets.byl(%)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.assets.rgfy(wy)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.assets.bjfy(wy)"/></th>"
                                    + "<th class='text-right'><fmt:message key="maintainer.assets.zwxfy(wy)"/></th>"
                                    + "</tr></thead>");
                                $("#detail-table-" + detailId).prepend(sb.toString());
                                for (var i = 0; i < data.data.list.length; i++) {
                                    $("#detail-table-" + detailId + " tbody").append("<tr>"
                                        + "<td class='text-center'>" + (i + 1) + "</td>"
                                        + "<td class='spanTitle' onclick=query(\"device\",\"" + data.data.list[i].id + "\") title='" + (data.data.list[i].name || '') + "'>" + (data.data.list[i].name || '') + "</td>"
                                        + "<td class='text-left'>" + (data.data.list[i].modalName || '') + "</td>"
                                        + "<td class='text-left'>" + (data.data.list[i].department || '') + "</td>"
                                        + "<td class='text-left'>" + (data.data.list[i].sn || '') + "</td>"
                                        + "<td class='text-left'>" + (data.data.list[i].assetsNo || '') + "</td>"
                                        + "<td class='text-right'>" + (data.data.list[i].manufacturer || '') + "</td>"
                                        + "<td class='text-right'>" + parseFloat((data.data.list[i].price / CONST) || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat((data.data.list[i].depreciationPrice / CONST) || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + (data.data.list[i].enableDate || '') + "</td>"
                                        + "<td class='text-right'>" + parseFloat(data.data.list[i].usedTime || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat(data.data.list[i].ageLimitMeasure || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + (data.data.list[i].curToRepairCounts || 0) + "</td>"
                                        + "<td class='text-right'>" + (data.data.list[i].curFaultCounts || 0) + "</td>"
                                        + "<td class='text-right'>" + parseFloat(data.data.list[i].curResponseMin || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat(data.data.list[i].curRepairUsedMin || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat(data.data.list[i].curIntactRatio || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat(data.data.list[i].curOnceRepairRate || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat(data.data.list[i].curUpkeepRate || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat((data.data.list[i].curEstimateLabourCost / CONST) || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat((data.data.list[i].curEstimatePartCost / CONST) || 0).toFixed(2) + "</td>"
                                        + "<td class='text-right'>" + parseFloat((data.data.list[i].curEstimateTotalCost / CONST) || 0).toFixed(2) + "</td>"
                                        + "</tr>");
                                }

                            } else {
                                $("#detail-table-" + detailId).html('<p><fmt:message key="share.talbe.myxgjl"/></p>');
                            }
                        } else {
                            flavrShowByTime(data.msg, null, "danger", false);
                        }
                    },
                    failure: function () {
                        flavrShowByTime(data.msg, null, "danger", false);
                    }
                })
            } else {
                $(".detail-tr-" + detailId).addClass("hide");
                $("#detail-" + detailId).addClass("fa-plus");
                $("#detail-" + detailId).removeClass("fa-minus");
            }
        }

        $('#moremodel').click(moremodals);

        function moremodals() {
            loading(function () {
                $('#modal').attr('modal', 'modal');
                var sb = new StringBuffer();
                $("#tblSort").html('<tbody id="table_data"></tbody>');
                sb.append("<thead><tr><th class='text-center'>#</th>");
                //表头
                sb.append("<th class='text-left'><fmt:message key="share.table.head.sbcj"/></th>");

                //表格内容
                sb.append("<th class='text-right'><fmt:message key="maintainer.table.ycxfl(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.ycxfltb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.wxcs(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.kssl(g)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.sbsl(t)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.sblxsl(z)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysj(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysjtb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsj(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsjtb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.dwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.zwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.xwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.ztpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.xysdpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.fwzlpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.fwtdpjpf(fz)"/></th>"
                    + "</tr></thead>");
                $("#tblSort").prepend(sb.toString());
                for (var i = 0; i < xAxisModel.length; i++) {
                    $("#table_data").append("<tr>"
                        + "<td class='no-cal text-center'>" + (i + 1) + "</td>"
                        + "<td class='no-cal text-left spanTitle' onclick='query(\"hospital\",\"" + idsModel[i] + "\")'>" + xAxisModel[i] + "</td>"
                        + "<td class='avg-1 text-right'>" + parseFloat(seriesOnceRepairRateModel[i]).toFixed(2) + "</td>"
                        + "<td class='avg-2 text-right yoy'>" + parseFloat(seriesOnceRepairRateYoyModel[i]).toFixed(2) + "</td>"
                        + "<td class='total-3 text-right'>" + seriesTotalRepairCountsModel[i] + "</td>"
                        + "<td class='total-4 text-right'>" + seriesHospitalCountsModel[i] + "</td>"
                        + "<td class='total-5 text-right'>" + seriesDeviceCountsModel[i] + "</td>"
                        + "<td class='total-6 text-right'>" + seriesDeviceTypeCountsModel[i] + "</td>"
                        + "<td class='total-7 text-right'>" + seriesAvgResponseMinModel[i] + "</td>"
                        + "<td class='avg-8 text-right yoy'>" + parseFloat(seriesAvgResponseMinYoyModel[i]).toFixed(2) + "</td>"
                        + "<td class='total-9 text-right'>" + seriesAvgRepairUsedMinModel[i] + "</td>"
                        + "<td class='avg-10 text-right yoy'>" + seriesAvgRepairUsedMinYoyModel[i] + "</td>"
                        + "<td class='total-11 text-right'>" + seriesBigRepairCountsModel[i] + "</td>"
                        + "<td class='total-12 text-right'>" + seriesMiddleRepairCountsModel[i] + "</td>"
                        + "<td class='total-13 text-right'>" + seriesSmallRepairCountsModel[i] + "</td>"
                        + "<td class='avg-14 text-right'>" + parseFloat(seriesAvgOverallScoreModel[i]).toFixed(2) + "</td>"
                        + "<td class='avg-15 text-right'>" + parseFloat(seriesAvgSpeedScoreModel[i]).toFixed(2) + "</td>"
                        + "<td class='avg-16 text-right'>" + parseFloat(seriesAvgQualityScoreModel[i]).toFixed(2) + "</td>"
                        + "<td class='avg-17 text-right'>" + parseFloat(seriesAvgAttitudeScorModel[i]).toFixed(2) + "</td>"
                        + "</tr>");
                }
                calTableData('tblSort', true);
                $('#modal').iziModal('setTitle', '<fmt:message key="share.table.title.sbcjfbxq"/>');
                $('#modal').iziModal('open', this);
                loading(true);
            });
        }

        // 历年数据点击事件
        $('#overyear').click(function () {
            if ($(this).hasClass('active')) {
                $('#tag').next().show();
                $('#moredetail').html('<fmt:message key="charts.title.yyksfb"/>').off().on('click', morehospitals);
                $(this).html('<fmt:message key="charts.button.yfxs"/>').removeClass('active');
                showYearTop5();
                chart.clear();
                chart.setOption(optionAgelimit);
                $('.quadrantContainner').show();
                $('.quadrant').removeClass('active');
            } else {
                $('#tag').next().hide();
                $(this).html('<fmt:message key="charts.button.qbxs"/>').addClass('active');
                loading(function () {
                    showYearTop5(true);
                    $('.quadrantContainner').hide();
                    $('#moredetail').html('<fmt:message key="share.table.title.yffb"/>').off().on('click', moreyear);
                    idsB = [];
                    xAxisB = [];
                    seriesHospitalCountsB = [];
                    seriesDeviceTypeCountsB = [];
                    seriesDeviceCountsB = [];
                    seriesOnceRepairRateB = [];
                    seriesOnceRepairRateYoyB = [];
                    seriesAvgResponseMinB = [];
                    seriesAvgResponseMinYoyB = [];
                    seriesAvgRepairUsedMinB = [];
                    seriesAvgRepairUsedMinYoyB = [];
                    seriesBigRepairCountsB = [];
                    seriesMiddleRepairCountsB = [];
                    seriesSmallRepairCountsB = [];
                    seriesTotalRepairCountsB = [];
                    seriesAvgOverallScoreB = [];
                    seriesAvgSpeedScoreB = [];
                    seriesAvgQualityScoreB = [];
                    seriesAvgAttitudeScorB = [];
                    $("#ul_year").html('');
                    $.ajax({
                        url: '<%=basePath%>/charts/hospital/department-maintainer/month-trend',
                        data: {
                            hospitalId: hspId,
                            departmentId: hospitalId ? JSON.stringify(hospitalId) : '',
                            riskId: riskId ? JSON.stringify(riskId) : '',
                            typeId: typeId ? JSON.stringify(typeId) : '',
                            brandId: brandId ? JSON.stringify(brandId) : '',
                            year: year ? JSON.stringify(year) : '',
                            monthId: monthId ? JSON.stringify(monthId) : '',
                            maintainerId: maintainerId,
                            enableYearStart: enableYearStart,
                            enableYearEnd: enableYearEnd,
                            priceStart: priceStart,
                            priceEnd: priceEnd,
                            ageLimitStart: ageLimitStart,
                            ageLimitEnd: ageLimitEnd
                        },
                        type: 'post',
                        success: function (data) {
                            if (data.ret == 1) {
                                data.data = data.data || {list: []};
                                for (var i = 0; i < data.data.list.length; i++) {
                                    idsB.push(data.data.list[i].id || '');
                                    xAxisB.push(data.data.list[i].name || '');
                                    seriesHospitalCountsB.push(data.data.list[i].curHospitalCounts || 0);
                                    seriesDeviceTypeCountsB.push(data.data.list[i].curDeviceTypeCounts || 0);
                                    seriesDeviceCountsB.push(data.data.list[i].curDeviceCounts || 0);
                                    seriesOnceRepairRateB.push(parseFloat(data.data.list[i].curOnceRepairRate || 0).toFixed(2));
                                    seriesOnceRepairRateYoyB.push(parseFloat(data.data.list[i].onceRepairRateYoy || 0).toFixed(2));
                                    seriesAvgResponseMinB.push(parseFloat(data.data.list[i].curAvgResponseMin || 0).toFixed(2));
                                    seriesAvgResponseMinYoyB.push(parseFloat(data.data.list[i].avgResponseMinYoy || 0).toFixed(2));
                                    seriesAvgRepairUsedMinB.push(parseFloat(data.data.list[i].curAvgRepairUsedMin || 0).toFixed(2));
                                    seriesAvgRepairUsedMinYoyB.push(parseFloat(data.data.list[i].avgRepairUsedMinYoy || 0).toFixed(2));
                                    seriesBigRepairCountsB.push(data.data.list[i].curBigRepairCounts || 0);
                                    seriesMiddleRepairCountsB.push(data.data.list[i].curMiddleRepairCounts || 0);
                                    seriesSmallRepairCountsB.push(data.data.list[i].curSmallRepairCounts || 0);
                                    seriesTotalRepairCountsB.push(data.data.list[i].curTotalRepairCounts || 0);
                                    seriesAvgOverallScoreB.push(parseFloat(data.data.list[i].curAvgOverallScore || 0).toFixed(2));
                                    seriesAvgSpeedScoreB.push(parseFloat(data.data.list[i].curAvgSpeedScore || 0).toFixed(2));
                                    seriesAvgQualityScoreB.push(parseFloat(data.data.list[i].curAvgQualityScore || 0).toFixed(2));
                                    seriesAvgAttitudeScorB.push(parseFloat(data.data.list[i].curAvgAttitudeScor || 0).toFixed(2));

                                    if (title == 0) {
                                        $("#ul_year").append(
                                            '<li><a><span class="fl data_span_f">' + data.data.list[i].name + '</span><em class="fl data_span_s">'
                                            + (data.data.list[i].curTotalRepairCounts || 0) + '</em><em class="fr">'
                                            + parseFloat(data.data.list[i].curOnceRepairRate || 0).toFixed(2) + '</em></a></li>');
                                    } else if (title == 1) {
                                        $("#ul_year").append(
                                            '<li><a><span class="fl data_span_f">' + data.data.list[i].name + '</span><em class="fl data_span_s">'
                                            + (data.data.list[i].curAvgResponseMin || 0) + '</em><em class="fr">'
                                            + (data.data.list[i].curAvgRepairUsedMin || 0) + '</em></a></li>');
                                    }
                                }
                                optionB.xAxis.data = xAxisB;
                                optionB.series[0].data = seriesBigRepairCountsB;
                                optionB.series[1].data = seriesMiddleRepairCountsB;
                                optionB.series[2].data = seriesSmallRepairCountsB;
                                chart.clear();
                                chart.setOption(optionB);
                            } else {
                                flavrShowByTime(data.msg, null, "danger", false);
                            }
                            loading(true);
                        },
                        failure: function (data) {
                            flavrShowByTime(data.msg, null, "danger", false);
                        }
                    });
                });
            }
        });

        function moreyear() {
            loading(function () {
                var sb = new StringBuffer();
                $("#tblSort").html('<tbody id="table_data"></tbody>');
                sb.append("<thead><tr><th class='text-center'>#</th>");
                //表头
                sb.append("<th class='text-left'><fmt:message key="share.table.head.yf"/></th>");

                //表格内容
                sb.append("<th class='text-right'><fmt:message key="maintainer.table.ycxfl(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.ycxfltb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.wxcs(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.kssl(g)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.sbsl(t)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.sblxsl(z)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysj(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjxysjtb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsj(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.pjwxsjtb(%)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.dwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.zwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.xwxsl(c)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.ztpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.xysdpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.fwzlpjpf(fz)"/></th>"
                    + "<th class='text-right'><fmt:message key="maintainer.table.fwtdpjpf(fz)"/></th>"
                    + "</tr></thead>");
                $("#tblSort").prepend(sb.toString());
                for (var i = 0; i < xAxisB.length; i++) {
                    $("#table_data").append("<tr>"
                        + "<td class='no-cal text-center'>" + (i + 1) + "</td>"
                        + "<td class='no-cal text-left'>" + xAxisB[i] + "</td>"
                        + "<td class='avg-1 text-right'>" + parseFloat(seriesOnceRepairRateB[i]).toFixed(2) + "</td>"
                        + "<td class='avg-2 text-right yoy'>" + parseFloat(seriesOnceRepairRateYoyB[i]).toFixed(2) + "</td>"
                        + "<td class='total-3 text-right'>" + seriesTotalRepairCountsB[i] + "</td>"
                        + "<td class='total-4 text-right'>" + seriesHospitalCountsB[i] + "</td>"
                        + "<td class='total-5 text-right'>" + seriesDeviceCountsB[i] + "</td>"
                        + "<td class='total-6 text-right'>" + seriesDeviceTypeCountsB[i] + "</td>"
                        + "<td class='total-7 text-right'>" + seriesAvgResponseMinB[i] + "</td>"
                        + "<td class='avg-8 text-right yoy'>" + parseFloat(seriesAvgResponseMinYoyB[i]).toFixed(2) + "</td>"
                        + "<td class='total-9 text-right'>" + seriesAvgRepairUsedMinB[i] + "</td>"
                        + "<td class='avg-10 text-right yoy'>" + seriesAvgRepairUsedMinYoyB[i] + "</td>"
                        + "<td class='total-11 text-right'>" + seriesBigRepairCountsB[i] + "</td>"
                        + "<td class='total-12 text-right'>" + seriesMiddleRepairCountsB[i] + "</td>"
                        + "<td class='total-13 text-right'>" + seriesSmallRepairCountsB[i] + "</td>"
                        + "<td class='avg-14 text-right'>" + parseFloat(seriesAvgOverallScoreB[i]).toFixed(2) + "</td>"
                        + "<td class='avg-15 text-right'>" + parseFloat(seriesAvgSpeedScoreB[i]).toFixed(2) + "</td>"
                        + "<td class='avg-16 text-right'>" + parseFloat(seriesAvgQualityScoreB[i]).toFixed(2) + "</td>"
                        + "<td class='avg-17 text-right'>" + parseFloat(seriesAvgAttitudeScorB[i]).toFixed(2) + "</td>"
                        + "</tr>");
                }
                calTableData("tblSort", true);
                $('#modal').iziModal('setTitle', '<fmt:message key="share.table.title.yffb"/>');
                $('#modal').iziModal('open', this);
                loading(true);
            });
        }

        // 柱状 + 折线  历年数据Option
        var optionB = {
            color: ['#2089ff', '#6c63ff', '#12a0df', '#fb8a22', '#fef534'],
            backgroundColor: '#373945',
            tooltip: {
                trigger: 'axis',
                axisPointer: { // 坐标轴指示器，坐标轴触发有效
                    type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
                },
                textStyle: {
                    fontSize: 0.28 * rem
                },
                formatter: function (a) {
                    if (a.componentType == "markLine") {
                        return a.name + ':' + a.value;
                    } else {
                        var index = a[0].dataIndex;
                        return xAxisB[index] + '<br/>'
                            + '<fmt:message key="maintain.charts.dwxsl"/>：' + seriesBigRepairCountsB[index] + '<fmt:message key="share.unit.ci"/><br/>'
                            + '<fmt:message key="maintain.charts.zwxsl"/>：' + seriesMiddleRepairCountsB[index] + '<fmt:message key="share.unit.ci"/><br/>'
                            + '<fmt:message key="maintain.charts.xwxsl"/>：' + seriesSmallRepairCountsB[index] + '<fmt:message key="share.unit.ci"/>';
                    }
                }
            },
            legend: {
                x: "right",
                textStyle: {
                    color: '#AAA',
                    fontSize: 0.28 * rem
                },
                data: ['<fmt:message key="maintain.charts.dwxsl"/>', '<fmt:message key="maintain.charts.zwxsl"/>', '<fmt:message key="maintain.charts.xwxsl"/>']
            },
            grid: {
                top: 1.2 * rem,
                left: 0.4 * rem,
                right: 0.4 * rem,
                bottom: 0.8 * rem,
                containLabel: true
            },
            xAxis: {
                type: 'category',
                data: [],
                axisLabel: {
                    rotate: 30,
                    fontSize: 0.28 * rem
                }
            },
            yAxis: [{
                name: '<fmt:message key="share.unit.ci"/>',
                type: 'value',
                nameTextStyle: {
                    color: '#AAA',
                    fontSize: 0.28 * rem
                },
                splitLine: {
                    lineStyle: {
                        type: 'dashed'
                    }
                },
                axisLabel: {
                    fontSize: 0.28 * rem
                }
            }],
            series: [{
                name: '<fmt:message key="maintain.charts.dwxsl"/>',
                type: 'bar',
                barMaxWidth: barMaxWidth,
                barGap: '0%',
                stack: 'one',
                data: []
            }, {
                name: '<fmt:message key="maintain.charts.zwxsl"/>',
                type: 'bar',
                barMaxWidth: barMaxWidth,
                stack: 'one',
                data: []
            }, {
                name: '<fmt:message key="maintain.charts.xwxsl"/>',
                type: 'bar',
                barMaxWidth: barMaxWidth,
                stack: 'one',
                data: []
            }]
        };

        var optionB1 = {
            color: ['#2089ff', '#6c63ff', '#12a0df', '#fb8a22', '#fef534'],
            backgroundColor: '#373945',
            tooltip: {
                trigger: 'axis',
                axisPointer: { // 坐标轴指示器，坐标轴触发有效
                    type: 'shadow' // 默认为直线，可选为：'line' | 'shadow'
                },
                textStyle: {
                    fontSize: 0.28 * rem
                },
                formatter: function (a) {
                    if (a.componentType == "markLine") {
                        return a.name + ':' + a.value;
                    } else {
                        var index = a[0].dataIndex;
                        return xAxis[index] + '<br/>'
                            + '<fmt:message key="maintain.charts.pjxysj"/>：' + seriesAvgResponseMin[index] + '<fmt:message key="share.unit.fenzhong"/><br/>'
                            + '<fmt:message key="maintain.charts.pjwxsj"/>：' + seriesAvgRepairUsedMin[index] + '<fmt:message key="share.unit.fenzhong"/>';
                    }
                }
            },
            legend: {
                x: "right",
                textStyle: {
                    color: '#AAA',
                    fontSize: 0.28 * rem
                },
                data: ['<fmt:message key="maintain.charts.pjxysj"/>', '<fmt:message key="maintain.charts.pjwxsj"/>']
            },
            grid: {
                top: 1.2 * rem,
                left: 0.4 * rem,
                right: 0.4 * rem,
                bottom: 0.8 * rem,
                containLabel: true
            },
            dataZoom: [{
                type: 'inside',
                xAxisIndex: [0],
                start: 0,
                end: 100
            }],
            xAxis: {
                type: 'category',
                data: [],
                axisLabel: {
                    rotate: 30,
                    fontSize: 0.28 * rem
                }
            },
            yAxis: [{
                name: '<fmt:message key="charts.axis.sj-fz"/>',
                type: 'value',
                nameTextStyle: {
                    color: '#AAA',
                    fontSize: 0.28 * rem
                },
                axisLabel: {
                    fontSize: 0.28 * rem
                }
            }],
            series: [{
                name: '<fmt:message key="maintain.charts.pjxysj"/>',
                type: 'bar',
                barMaxWidth: barMaxWidth,
                barGap: '0%',
                data: []
            }, {
                name: '<fmt:message key="maintain.charts.pjwxsj"/>',
                type: 'bar',
                barMaxWidth: barMaxWidth,
                data: []
            }]
        };

        //设备年限气泡图
        var optionAgelimit = {
            color: ['#31860f'],
            backgroundColor: '#373945',
            tooltip: {
                trigger: 'item',
                textStyle: {
                    fontSize: 0.28 * rem
                },
                formatter: function (a) {
                    if (a.componentType == "markLine") {
                        return a.name + ':' + a.value;
                    } else {
                        var index = a.dataIndex;
                        return xAxis[index] + '<br/>'
                            + '<fmt:message key="maintainer.overview.ycxfl"/>：' + seriesOnceRepairRate[index] + '%<br/>'
                            + '<fmt:message key="maintainer.overview.wxsl"/>：' + seriesTotalRepairCounts[index] + '<fmt:message key="share.unit.ci"/><br/>'
                            + '<fmt:message key="maintainer.overview.pjxysj"/>：' + seriesAvgResponseMin[index] + '<fmt:message key="share.unit.fenzhong"/><br/>'
                            + '<fmt:message key="maintainer.overview.pjwxsj"/>：' + seriesAvgRepairUsedMin[index] + '<fmt:message key="share.unit.fenzhong"/>';
                    }
                }
            },
            dataZoom: [{
                type: 'inside',
                xAxisIndex: [0],
                start: 0,
                end: 100
            },
                {
                    type: 'inside',
                    yAxisIndex: [0],
                    start: 0,
                    end: 100
                }
            ],
            grid: {
                top: 1.2 * rem,
                left: 0.4 * rem,
                right: 2.4 * rem,
                bottom: 0.8 * rem,
                containLabel: true
            },
            xAxis: {
                name: '<fmt:message key="charts.axis.ycxfl-%"/>',
                type: 'value',
                nameTextStyle: {
                    color: '#AAA',
                    fontSize: 0.28 * rem
                },
                axisLabel: {
                    show: true,
                    fontSize: 0.28 * rem,
                    textStyle: {
                        color: '#fff'
                    }
                },
                splitLine: {
                    show: false,
                    lineStyle: {
                        color: '#f00',
                        type: 'dashed'
                    }
                },
                axisLine: {
                    lineStyle: {
                        color: '#fff'
                    }
                },
                axisTick: {
                    lineStyle: {
                        color: '#fff'
                    }
                }
            },
            yAxis: [{
                name: '<fmt:message key="maintainer.overview.wxsl"/>',
                type: 'value',
                nameTextStyle: {
                    color: '#AAA',
                    fontSize: 0.28 * rem
                },
                axisLabel: {
                    show: true,
                    fontSize: 0.28 * rem,
                    textStyle: {
                        color: '#fff'
                    }
                },
                splitLine: {
                    show: false,
                    lineStyle: {
                        color: '#f00',
                        type: 'dashed'
                    }
                },
                axisLine: {
                    lineStyle: {
                        color: '#fff'
                    }
                },
                axisTick: {
                    lineStyle: {
                        color: '#fff'
                    }
                }
            }],
            series: [{
                type: 'scatter',
                data: [],
                symbolSize: function (data) {
                    if (data[2] === 0) return 0;
                    return 35;
                },
                markLine: {
                    lineStyle: {
                        normal: {
                            color: '#f00',
                            type: 'dashed',
                            opacity: 0.4
                        }
                    },
                    data: [
                        {type: 'average', name: '<fmt:message key="maintainer.assets.ycxflpjz(%)"/>', valueIndex: 0, xAxis: null},
                        {type: 'average', name: '<fmt:message key="maintainer.assets.zwxcspjz(c)"/>', valueIndex: 1, yAxis: null}
                    ]
                }
            }]
        };
    </script>
    </body>
</fmt:bundle>
</html>
